#include "BaseScene.h"
#include "MainScene.h"
#include "Recordscene.h"
#include "StatusScene.h"
#include "CityScene.h"
#include "SceneFactory.h"
#include "MGraphView.h"
#include "Building/City.h"
#include <qmath.h>

SceneFactory::SceneFactory()
{
}

BaseScene *SceneFactory::CreateScene(const SceneType &sceneType)
{    
    BaseScene *newScene;
    switch(sceneType)
    {
    case FlgMainScene:
        newScene=new MainScene();
        break;
    case FlgStatusScene:
        newScene=new StatusScene();
        break;
    case FlgAssinScene:
 //       newScene=new AssinScene();
        break;
    case FlgRecordScene:
        newScene=new RecordScene();
        break;
    case FlgCityScene:
        newScene=new CityScene();
        break;
    default:
        newScene=NULL;
        break;
    }

    return newScene;
}

